<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String basePath = request.getContextPath();
%>
<form id="pagerForm" method="post" action="<%=basePath%>/user/manager.action">
	<input type="hidden" name="page.curPage" value="<s:property value="#PAGE_LIST.curPage"/>" />
	<input type="hidden" name="page.pageSize" value="<s:property value="#PAGE_LIST.pageSize"/>" />
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>/res/toResAdd.action" target="dialog" rel="resAdd"><span>资源添加</span></a></li>
			<li><a class="delete" href="<%=basePath%>/res/resDel.action?resources.resId={res_resId}" target="ajaxTodo" title="确定要删除该资源吗？" warn="请选择一个资源"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>/res/toResModify.action?resources.resId={res_resId}" rel="resModify" target="dialog" warn="请选择一个资源"><span>资源信息修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print" layoutH="52">
	<table class="list" width="98%" targetType="navTab">
		<thead>
			<tr>
				<th width="80">资源名称</th>
				<th width="100">资源链接地址</th>
				<th width="100">是否根节点资源</th>
				<th width="100">资源编号</th>
				<th width="100">资源状态</th>
				<th width="100">资源创建时间</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator value="#request.RESOURCES_INFO" id="res">
				<tr target="res_resId" rel="<s:property value="#res.resId"/>">
					<td><s:property value="#res.resName"/></td>
					<td><s:property value="#res.resAction"/></td>
					<td><s:text name="resources.isNode.%{#res.resIsNode}"/></td>
					<td><s:property value="#res.resNodeNum"/></td>
					<td><s:text name="resources.status.%{#res.resStatus}"/></td>
					<td><s:date name="#res.resCreateTimeFormat" format="yyyy-MM-dd"/></td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共<s:property value="#PAGE_LIST.dataNum"/>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="<s:property value="#PAGE_LIST.dataNum"/>" numPerPage="<s:property value="#PAGE_LIST.pageSize"/>" pageNumShown="10" currentPage="<s:property value="#PAGE_LIST.curPage"/>"></div>

	</div>

</div>